package com.fh.mappers;

import com.fh.entity.po.Key;
import com.fh.entity.po.Value;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 描述:
 * Author:袁亚强
 * Date:2021/11/2317:23
 */
@Mapper
public interface ValueMapper {

    @Select("select * from t_shop_value where aid =#{id} and isdel=0")
    List<Value> queryByIdValue(Integer id);

    @Select("select * from t_shop_value where id =#{id}")
    Value queryByIdData(Integer id);


    void updateValue(Value value);


    @Insert(" insert into t_shop_value (aid,value,valueId,isdel,createDate) value(#{aid},#{value},#{valueId},#{isdel},#{createDate})")
    void  addValue(Value value);



}
